<? $extra_tabs = Backend::$events->fireEvent('cms:onListPageEditorSidebarTabs'); ?>

<ul class="tabs_pages infoBlock" id="action_info_pages">
	<li class="page tab_page">
		<div class="content">
			<h3 id="files_header">Files</h3>
			<p class="description" id="files_description">
				<? if (!isset($content_mode)): ?>
					Click a file to insert its path to the editor.
				<? else: ?>
					Click a file to insert image or link to the editor. Hold ALT for more options.
				<? endif ?>
			</p>
			<?= $this->filebrowserRender() ?>
		</div>
	</li>
	<li class="page scrollable" id="action_description_tab_page">
		<div id="action_info_description">
			<?= $this->renderPartial('action_description', array('action'=>$form_model->action_reference)) ?>
		</div>
	</li>
	<li class="page hidden scrollable">
		<div class="offset_bottom"><? $this->renderPartial('handbook') ?></div>
	</li>
	
	<? 
		foreach ($extra_tabs as $tabs): ?>
	<? 
		if (is_array($tabs)): 
			foreach ($tabs as $tab=>$partial):
	?>
		<? $this->renderPartial($partial); ?>
	<? 
			endforeach;
		endif 
	?>
	<? endforeach ?>
</ul>
</ul>
